package com.xinzhilibrary.dao;

import com.xinzhilibrary.model.UserInfo;
import org.apache.catalina.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.ArrayList;

@Mapper
public interface ICheckUserInfoDao {
    String checkUserName(String userName);

    UserInfo login(@Param("userName") String userName, @Param("userPassword") String userPassword);

    @Select("select * from xinzhilibrary.userinfo")
    ArrayList<UserInfo> selectAllUser();

    int userRegister(UserInfo userInfo);

    int updateMoney(@Param("Money") double Money,@Param("userName") String userName);//修改用户余额接口
    int updateMoneyByID(@Param("Money") double Money,@Param("userId") int userId);
    int updateUserInfo(UserInfo userInfo);

}

